﻿using JY.Wpf.Core.ViewModelBases;

namespace JY.Wpf.Core.Events
{
    /// <summary>
    /// 显示子窗体事件模型
    /// </summary>
    public class ShowChildWindowEvent
    {
        #region # 构造器
        /// <summary>
        /// 构造器
        /// </summary>
        /// <param name="childWindowViewModel">子窗体ViewModel</param>
        /// <param name="showMask">子窗体显示遮罩</param>
        public ShowChildWindowEvent(ChildWindowViewModelBase childWindowViewModel,bool showMask = true)
        {
            this.ChildWindowViewModel = childWindowViewModel;
            this.ShowMask = showMask;
        } 
        #endregion

        /// <summary>
        /// 子窗体ViewModel
        /// </summary>
        public ChildWindowViewModelBase ChildWindowViewModel { get; set; }
        /// <summary>
        /// 子窗体显示遮罩
        /// </summary>
        public bool ShowMask { get; set; }
    }
}
